import math

#name='/home/jonk/projects/sizes/representacion.dat'
#name='/home/jonk/remote/cfpfsc/jcfernandez/simulaciones/espresso/Confinado/polydisperse/u30/L1.0/TERMO/OLD/config.dat'
name='/home/jonk/simulaciones/Espresso/confinado/polydisperse/u30/L0.5/stressTensor.dat'
f = open(name,'r')

f.seek(0, 2)
dnd = f.tell()
print dnd
dnd = -5858650
f.seek(dnd, 1)

dnd = f.tell()
print dnd

fout = open("salida.dat",'w')
tx = f.readlines()
for text in tx:
    fout.write(text)


f.close()
fout.close()

       
